package com.hq.hotl.service.impl;

import com.hq.hotl.dao.EnterDao;
import com.hq.hotl.pojo.Enter;
import com.hq.hotl.service.EnterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnterServiceImpl  implements EnterService {
    @Autowired
    private EnterDao enterDao;
    @Override
    public List<Object> queryAll(String username) {
        return enterDao.queryAll(username);
    }

    @Override
    public List<Enter> queryAllByState(int state) {
        List<Enter> enters = enterDao.queryAllByState(state);
        return enters;
    }
}
